import request from '@/utils/request'

// 查询消防员信息列表
export function listInfo(query) {
  return request({
    url: '/firefighter/info/list',
    method: 'get',
    params: query
  })
}
// 查询消防员信息详细
export function getInfo(id) {
  return request({
    url: '/firefighter/info/' + id,
    method: 'get'
  })
}

// 新增消防员信息
export function addInfo(data) {
  return request({
    url: '/firefighter/info',
    method: 'post',
    data: data
  })
}

// 修改消防员信息
export function updateInfo(data) {
  return request({
    url: '/firefighter/info',
    method: 'put',
    data: data
  })
}

// 删除消防员信息
export function delInfo(id) {
  return request({
    url: '/firefighter/info/' + id,
    method: 'delete'
  })
}

// 获取列表
export function getDateList() {
  return request({
    url: '/morescreeningdate/morescreeningdate/mapList',
    method: 'get',
  })
}

export function typeList() {
  return request({
    url: '/morescreeningdate/morescreeningdate/dept',
    method: 'get',
  })
}




export function peopleType(id) {
  return request({
    url: `/morescreeningdate/morescreeningdate/list`,
    method: 'post',
    data: {
      id: id,
    },
  });
}

// 部职别级联列表
// tree列表
export function treeList() {
  return request({
    url: `/system/user/deptTree`,
    headers: {
      'Content-Type': 'application/json',
    },
    method: 'get',
  });
}

// 查询部门下拉树结构
export function deptTreeSelect() {
  return request({
    url: '/system/user/deptTree',
    method: 'get'
  })
}

export function treeSelect() {
  return request({
    url: '/system/user/deptTree1',
    method: 'get'
  })
}

export function getUser(e) {
  return request({
    url: `/morescreeningdate/morescreeningdate/GetzUnit?deptId1=${e}`,
    method: 'get'
  })
}


// =100
